<?php 
class product_colmod{
    protected $colMod;
    function product_colmod()
    {
        $this->colMod=array(
            array(  
                "text"          =>"Mã SP"            
                ,"datafield"    =>"ID" 
                ,"cellsalign"   =>"right"
                ,"width"        => 80    
                ),
            array(  
                "text"          =>"Tên sản phẩm"            
                ,"datafield"    =>"ProductName" 
                //,"width"        => 220
                ,"editable"     =>true
                ),
            array(  
                "text"          =>"Nhà cung cấp"            
                ,"datafield"    =>"Supplier" 
                ,"width"        => 120   
                ,"hidden"       =>true
                ),
            array(  
                "text"          =>"Đơn vị"            
                ,"datafield"    =>"QuantityPerUnit" 
                ,"width"        => 120   
                ,"hidden"       =>true
                ,"editable"     =>true
                ),
            array(  
                "text"          =>"Giá"            
                ,"datafield"    =>"UnitPrice" 
                ,"width"        => 120   
                ,"type"         =>"number"
                ,"columntype"   =>"numberinput"
                ,"filtertype"   =>"number"
                ,"cellsalign"   =>"right"
                ,"cellsformat"  =>'d'
                ,"hidden"       =>true
                ,"editable"     =>true
                ),
            array(  
                "text"          =>"Giá bán"            
                ,"datafield"    =>"UnitsOnOrder" 
                ,"width"        => 120   
                ,"type"         =>"number"
                ,"columntype"   =>"numberinput"
                ,"filtertype"   =>"number"
                ,"cellsalign"   =>"right"
                ,"cellsformat"  =>'d'
                ,"editable"     =>true
                ),
            array(  
                "text"          =>"Số lượng"            
                ,"datafield"    =>"Amount" 
                ,"width"        => 100   
                ,"type"         =>"number"
                ,"columntype"   =>"numberinput"
                ,"filtertype"   =>"number"
                ,"cellsalign"   =>"right"
                ,"editable"     =>true
                ),
            array(  
                "text"          =>"Đã bán"            
                ,"datafield"    =>"Sold" 
                ,"width"        => 100   
                ,"type"         =>"number"
                ,"columntype"   =>"numberinput"
                ,"filtertype"   =>"number"
                ,"cellsalign"   =>"right"
                ,"editable"     =>true
                ),
            array(  
                "text"          =>"Ngày bắt đầu"            
                ,"datafield"    =>"StartDate" 
                ,"type"         =>"date"
                ,"width"        => 100    
                //,"filterable"   =>true
                ,"filtertype"   =>"date"  
                //,"editable"     =>false
                //,"sortable"     =>true       
                //,"cellsalign"   =>"left"      
                ,"cellsformat"  =>'yyyy-MM-dd'
                //,"hidden"       =>true
                ),
            array(  
                "text"          =>"Ngày kết thúc"            
                ,"datafield"    =>"EndDate" 
                ,"type"         =>"date"
                ,"width"        => 100    
                //,"filterable"   =>true
                ,"filtertype"   =>"date"  
                //,"editable"     =>false
                //,"sortable"     =>true       
                //,"cellsalign"   =>"left"      
                ,"cellsformat"  =>'yyyy-MM-dd'
                //,"hidden"       =>true
                ),
//            array(  
//                "text"          =>"Monney"            
//                ,"datafield"    =>"Monney" 
//                ,"type"         =>"number"
//                //,"columntype"   =>"checkbox" //number,checkbox[threestatecheckbox],numberinput,dropdownlist,combobox,datetimeinput
//                //,"threestatecheckbox"=> true
//                ,"width"        => 120    
//                //,"filterable"   =>true
//                ,"filtertype"   =>"number"  //textbox,checkedlist,list,number,checkbox,date
//                //,"editable"     =>true
//                //,"sortable"     =>true       
//                ,"cellsalign"   =>"right"      
//                //,"cellsformat"  =>'yyyy-MM-dd'
//                //,"hidden"       =>true      
//                ),
//            array(  
//                "text"          =>"Paypal"            
//                ,"datafield"    =>"Paypal" 
//                ,"type"         =>"bool"
//                ,"columntype"   =>"checkbox"
//                //,"threestatecheckbox"=> true
//                //,"width"        => 220    
//                //,"filterable"   =>true
//                ,"filtertype"   =>"bool"  
//                ,"editable"     =>true
//                //,"sortable"     =>true       
//                //,"cellsalign"   =>"left"      
//                //,"cellsformat"  =>'yyyy-MM-dd'
//                ,"hidden"       =>true      
//                ),
            array(  
                "text"          =>"Public"            
                ,"datafield"    =>"Status" 
                ,"type"         =>"bool"
                ,"width"        => 100   
                ,"columntype"   =>"checkbox"
                ,"threestatecheckbox"=> false
                ,"filtertype"   =>"bool"  
                ,"editable"     =>true
                ),
            array(  
                "text"          =>"Insert"            
                ,"datafield"    =>"Insert" 
                ,"type"         =>"date"
                ,"width"        => 220    
                //,"filterable"   =>true
                ,"filtertype"   =>"date"  
                //,"editable"     =>false
                //,"sortable"     =>true       
                //,"cellsalign"   =>"right"      
                ,"cellsformat"  =>'yyyy-MM-dd HH:mm:ss'
                //,"hidden"       =>true
                ),
            array(  
                "text"          =>"Update"            
                ,"datafield"    =>"Update" 
                ,"type"         =>"date"
                ,"width"        => 220    
                //,"filterable"   =>true
                ,"filtertype"   =>"date"  
                //,"editable"     =>false
                //,"sortable"     =>true       
                //,"cellsalign"   =>"left"      
                ,"cellsformat"  =>'yyyy-MM-dd HH:mm:ss'
                ,"hidden"       =>true
                ),
            array(  
                "text"          =>"Delete"            
                ,"datafield"    =>"Delete" 
                ,"type"         =>"date"
                ,"width"        => 220    
                //,"filterable"   =>true
                ,"filtertype"   =>"date"  
                //,"editable"     =>false
                //,"sortable"     =>true       
                //,"cellsalign"   =>"left"      
                ,"cellsformat"  =>'yyyy-MM-dd HH:mm:ss'
                ,"hidden"       =>true
                )
        );
    }
    function get(){
        return $this->colMod;
    }
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */